﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FileProcessor.Filter
{
	public class ReduceDPIFIlter : FilterFather
	{
		public override void Process(string sourceURL, string targetURL)
		{
			Bitmap bm = new Bitmap(sourceURL);
			Bitmap midd = new Bitmap(bm, (int)(bm.Width * 0.6),(int) (bm.Height * 0.6));
			Bitmap outbm = new Bitmap(midd, bm.Width, bm.Height);
			outbm.Save(targetURL);
		}
	}
}
